package com.example.bootdemo.events;

import com.example.bootdemo.pojo.UserInfo;
import com.example.bootdemo.service.UserService;
import org.springframework.context.ApplicationEvent;

public class UserRegisterEvent extends ApplicationEvent {

    private UserInfo userInfo;

    public UserRegisterEvent(UserService userService, UserInfo userInfo) {

        super(userService);

        this.userInfo = userInfo;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }
}
